package cn.ecnu.pojo.forum;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@AllArgsConstructor
@Data
public class Like {
    private Integer likeId; // 点赞的id
    private Integer typeId; // 点赞的类型的id
    private Integer userId; // 点赞用户的id

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date likeTime; // 点赞时间
    private Integer flag; // 点赞的类型(0-post, 1-comment)

}
